package common

type StatusCode struct {
	Code    string `json:"code"`
	Answer  bool   `json:"answer"`
	Message string `json:"message"`
}

var (
	ErrSystem          = StatusCode{"001", false, "系统错误"}
	ErrPlayOver        = StatusCode{"100", true, "语音播放完成"}
	SuccUserHang       = StatusCode{"101", true, "用户挂断"}
	SuccServiceHang    = StatusCode{"102", true, "坐席挂断"}
	ErrCallerHangup    = StatusCode{"101", true, "用户挂断"}
	ErrCalleeHangup    = StatusCode{"102", true, "坐席挂断"}
	ErrCancelByApi     = StatusCode{"103", false, "接口结束呼叫"}
	ErrCancelByCaller  = StatusCode{"104", false, "取消呼叫"}
	ErrCallerUnreach   = StatusCode{"105", false, "主叫无法接通"}
	ErrCalleeUnreach   = StatusCode{"106", false, "被叫无法接通"}
	ErrUserRefuse      = StatusCode{"107", false, "用户拒接"}
	ErrServiceRefuse   = StatusCode{"108", false, "坐席拒接"}
	ErrUnAnswer        = StatusCode{"109", false, "无人接听"}
	ErrCalleeUnAnswer  = StatusCode{"110", false, "被叫无人接听"}
	succDtmfHangup     = StatusCode{"120", true, "用户按键结束"}
	ErrCallerNoAnswer  = StatusCode{"121", false, "主叫未接听"}
	ErrCallTimeout     = StatusCode{"205", false, "通话超时"}
	ErrCallerLineErr   = StatusCode{"400", false, "主叫线路禁止"}
	ErrUserLineErr     = StatusCode{"401", false, "用户线路禁止"}
	ErrCallerEnQueue   = StatusCode{"402", true, "入队失败"}
	ErrNumberBlack     = StatusCode{"403", false, "黑名单"}
	ErrCallLineErr     = StatusCode{"404", true, "线路错误"}
	ErrRecord          = StatusCode{"501", true, "录音失败"}
	ErrNoFile          = StatusCode{"502", true, "放音文件不存在"}
	ErrPlayFile        = StatusCode{"503", true, "放音失败"}
	ErrGetDtmf         = StatusCode{"504", true, "获取按键失败"}
	ErrIvrInit         = StatusCode{"505", true, "Ivr配置失败"}
	ErrIvrTTL          = StatusCode{"506", true, "操作超时"}
	ErrServiceBusy     = StatusCode{"601", true, "坐席忙"}
	ErrServiceNoAnswer = StatusCode{"602", true, "坐席未接"}
	ErrServiceUnreach  = StatusCode{"603", true, "坐席无法接通"}
	ErrServiceAllBusy  = StatusCode{"604", true, "坐席全忙"}
	ErrQueueFull       = StatusCode{"605", true, "队列已满"}
	ErrServiceNotSign  = StatusCode{"606", true, "坐席未签入"}
	ErrSipNotExist     = StatusCode{"607", true, "sip账号不存在"}
	ErrSipNotReg       = StatusCode{"608", true, "sip电话未上线"}
	ErrSipNetWork      = StatusCode{"609", true, "sip电话网络问题"}
	SuccCallerHangup   = StatusCode{"801", true, "接听,主叫挂机"}
	SuccCalleeHangup   = StatusCode{"802", true, "接听,坐席挂机"}
	SuccIvrOver        = StatusCode{"803", true, "Ivr结束"}
	SuccLeaveMsgOver   = StatusCode{"805", true, "留言结束"}
	SuccSatisTimeOut   = StatusCode{"806", true, "满意调查超时"}
	SuccSatisOver      = StatusCode{"807", true, "满意调查完成"}
	SuccCancelByCaller = StatusCode{"808", true, "用户取消"}
	SuccHangByService  = StatusCode{"809", true, "坐席挂断"}
	SuccHangByApi      = StatusCode{"810", true, "Api挂断"}
)
